<?php

class Home_View {

    function __construct() {
    }

    public function toString() {
        $view_wrapper = new Div_Container('id', 'home-wrapper');
        $heading = new Div_Container('id', 'View_Heading');
        $body = new Div_Container('id', 'home-body');
        
        $heading->addContent('<h1>Home Page</h1></br></br>');
        
        $body->addContent('<p><strong>Welcome to Resource Managment System.</strong>' .'</p></br></br>');
        $body->addContent('<p>Use the menu on the left to navigate through webpages:' . '</p></br>');
        $body->addContent('<p><i>Click</i> on <strong>Schedule tab</strong> to make reservations and check availabilities.' . '</p>');
        $body->addContent('<p><i>Click</i> on <strong>Reports tab</strong> to check the average resource utiliziation per week, month or year.' .  '</p>');
        $body->addContent('<p><i>Click</i> on <strong>Reources tab</strong> to add, delete, or update resources.' . '</p>');
        $body->addContent('<p><i>Click</i> on <strong>Reservations tab</strong> to check access, delete or modify reservations. ' . '</p>');
      
        $view_wrapper->addContent($heading->toString());
        $view_wrapper->addContent($body->toString());

        return $view_wrapper->toString();
    }

}

?>
